import {del, post, put} from '../utils/request'

const headers = {
    'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
}
export const accountListAPI = (data) => {
    return post('/admin/basic/role/list', data)
}
// 新增账号
export const accountAddAPI = (data) => {
    return post('/admin/basic/role/add', data)
}
// 重置密码
export const accountResetAPI = (data) => {
    return put('/admin/basic/role/resetPassword', data, {headers})
}
// 删除用户
export const accountDelAPI = (data) => {
    return del('/admin/basic/role/delete', data, {headers})
}
